﻿@model IList<CategoryModel>

@using Nop.Web.Models.Catalog;
@if (Model.Count > 0)
{
    <div class="home-page-category-grid">
        @foreach (var item in Model)
        {
            <div class="category-box">
                <div class="category-list-product">
                    <h2 class="category-title">
                        <a href="@Url.RouteUrl("Category", new { SeName = item.SeName })" title="@item.PictureModel.Title">
                            @item.Name</a>
                    </h2>
                    @if(item.Products.Count>0)
                    {
                     <div class="product-grid">
                        @foreach (var product in item.Products)
                        {
                            <div class="item-box">
                                @Html.Partial("_ProductBox", product)
                            </div>
                        }
                         <div class="clear"></div>
                    </div>
                    }
                </div>
            </div>
        }
    </div>
}